projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd2bf48
)
mmc: sh_mmcif: Fix warning by unused variable
author
Nobuhiro Iwamatsu
<
[email protected]
>
Mon, 31 Mar 2014 05:54:29 +0000
(14:54 +0900)
committer
Pantelis Antoniou
<
[email protected]
>
Wed, 2 Apr 2014 09:55:48 +0000
(12:55 +0300)
Signed-off-by: Nobuhiro Iwamatsu <
[email protected]
>
Reported-by: Masahiro Yamada <
[email protected]
>
Acked-by: Pantelis Antoniou <
[email protected]
>
drivers/mmc/sh_mmcif.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/sh_mmcif.c
b/drivers/mmc/sh_mmcif.c
index ad5b23ce7ed3205518606a5da1516638f446c4ca..ed83a14c2defe1a28d291539aa695920149393ad 100644
(file)
--- a/
drivers/mmc/sh_mmcif.c
+++ b/
drivers/mmc/sh_mmcif.c
@@
-588,13
+588,12
@@
static struct mmc_config sh_mmcif_cfg = {
int mmcif_mmc_init(void)
{
- int ret = 0;
struct mmc *mmc;
struct sh_mmcif_host *host = NULL;
host = malloc(sizeof(struct sh_mmcif_host));
if (!host)
- ret
=
-ENOMEM;
+ ret
urn
-ENOMEM;
memset(host, 0, sizeof(*host));
host->regs = (struct sh_mmcif_regs *)CONFIG_SH_MMCIF_ADDR;